package com.hcloud.uploadsdk;

import android.app.Application;

import com.cloud.wolibrary.WoLib;
import com.cloud.wolibrary.callback.IInitCallback;
import com.cloud.wolibrary.callback.IVerifyTokenCallback;
import com.cloud.wolibrary.config.Config;

public class App extends Application {

    @Override
    public void onCreate() {
        super.onCreate();

        Config config = new Config.Builder()
                .setLog(true)
                .setReTryCount(0)
                .setMaxUploadRequest(1)
                .build();
        WoLib.getInstance().init(this, config);

        WoLib.getInstance().setToken("9bc35d53-40b7-4128-9f77-52fafc1f99c1", new IVerifyTokenCallback() {
            @Override
            public void success() {

            }

            @Override
            public void error(int i, String s) {

            }
        });
    }
}
